package com.shang.core;

import com.shang.core.base.LengthType;
import com.shang.core.base.VariableMeta;

/**
 * Created by shangwei2009@hotmail.com on 2021/9/7 13:37
 */
public class CompressedBCDMeta extends VariableMeta {
    public CompressedBCDMeta(String fieldName, Integer metaLength, LengthType lengthType) {
        super(fieldName, metaLength, lengthType);
    }

    @Override
    protected Integer valueLength(String metaStr) {
        // TODO: 2021/9/6 需要排除非10进制的
        return Integer.parseInt(metaStr);
    }

}
